import { post, get } from '@/http/index'
import type { TimeTableModel } from '@/type/TimeTable'
import { DeconstructionKvModel } from '@/utils/objUtils'
export async function getTimeTable(pk: string) {
  return await get<TimeTableModel>("TimeTable/Get", { pk: pk })
}

export async function listTimeTable(cond: any) {
  return await post<TimeTableModel>("TimeTable/List", cond)
}

export async function saveTimeTable(data: TimeTableModel) {
  DeconstructionKvModel(data)
  return await post<TimeTableModel>("TimeTable/Save", data)
}